package com.fastloan.mgt.dictionary.model;

import com.kawins.base.baseabs.BaseModel;
import com.kawins.supers.tree.annonation.TreeChild;
import com.kawins.supers.tree.annonation.TreeId;
import com.kawins.supers.tree.annonation.TreeParentId;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author admins
 *         createTime 2017/11/06
 */
@Table(name = "ZY_DICTIONARY")
public class Dictionary extends BaseModel<String> {
    /**
     * id
     */
    @Id
    @Column(name = "ID")
    private Integer id;
    /**
     * 父id
     */
    @Column(name = "PARENT_ID")
    private Integer parentId;
    /**
     * 名称
     */
    @Column(name = "NAME")
    private String name;
    /**
     * 值
     */
    @Column(name = "VALUE")
    private String value;
    /**
     * 组
     */
    @Column(name = "GROUP_NAME")
    private String groupName;

    /**
     * 英文名
     */
    private String nameUs;

    public String getNameUs() {
        return nameUs;
    }

    public Dictionary setNameUs(String nameUs) {
        this.nameUs = nameUs;
        return this;
    }

    public Integer getId() {
        return this.id;
    }

    public Dictionary setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getParentId() {
        return this.parentId;
    }

    public Dictionary setParentId(Integer parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getName() {
        return this.name;
    }

    public Dictionary setName(String name) {
        this.name = name;
        return this;
    }

    public String getValue() {
        return this.value;
    }

    public Dictionary setValue(String value) {
        this.value = value;
        return this;
    }

    public String getGroupName() {
        return groupName;
    }

    public Dictionary setGroupName(String groupName) {
        this.groupName = groupName;
        return this;
    }
}
